package com.ruoyi.medical.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.math.BigDecimal;

/**
 * 财务信息对象 meioms_finance
 * 
 * @author ruoyi
 * @date 2025-12-03
 */
@TableName("meioms_finance")
public class MeiomsFinance extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 财务ID */
    @TableId
    private Long financeId;

    /** 工单ID */
    @Excel(name = "工单ID")
    private Long workOrderId;

    /** 维修金额 */
    @Excel(name = "维修金额", width = 30, scale = 2)
    private BigDecimal repairAmount;

    /** 财务状态（0待结算 1已结算） */
    @Excel(name = "财务状态", readConverterExp = "0=待结算,1=已结算")
    private String financeStatus;

    /** 结算时间 */
    @Excel(name = "结算时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date settlementTime;

    public void setFinanceId(Long financeId)
    {
        this.financeId = financeId;
    }

    public Long getFinanceId()
    {
        return financeId;
    }
    public void setWorkOrderId(Long workOrderId)
    {
        this.workOrderId = workOrderId;
    }

    public Long getWorkOrderId()
    {
        return workOrderId;
    }
    public void setRepairAmount(BigDecimal repairAmount)
    {
        this.repairAmount = repairAmount;
    }

    public BigDecimal getRepairAmount()
    {
        return repairAmount;
    }
    public void setFinanceStatus(String financeStatus)
    {
        this.financeStatus = financeStatus;
    }

    public String getFinanceStatus()
    {
        return financeStatus;
    }
    public void setSettlementTime(Date settlementTime)
    {
        this.settlementTime = settlementTime;
    }

    public Date getSettlementTime()
    {
        return settlementTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("financeId", getFinanceId())
            .append("workOrderId", getWorkOrderId())
            .append("repairAmount", getRepairAmount())
            .append("financeStatus", getFinanceStatus())
            .append("settlementTime", getSettlementTime())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
